package com.swang.pms.model.enums;

/**
 * @ClassName: Status
 * @Description: 状态类型
 * @author: wangze@swang.com
 * @date: 2017年3月16日 下午9:45:51
 */
public enum Status {

    ENABLED("enabled", "有效"),
    DISABLED("disabled", "无效"),
    DELETE("delete", "删除"),
    PASS("pass", "通过"),
    FAIL("fail", "失败"),
    PUBLISH("publish", "已发布"),
    FREEZE("freeze", "冻结"),
    REVOKE("revoke", "撤销"),
    PENDING_PUB("pending_pub", "待提交"),
    PENDING_CHECK("pending_check", "待审核");


    private String code;
    private String name;

    private Status(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

}
